package test;

import java.util.Scanner;

public class grede {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		System.out.println("请输入成绩：");
		int src = scanner.nextInt();

		if (src == 100) {
			System.out.println("满分");
		} else if (src < 100 && src >= 90) {
			System.out.println("A");
		} else if (src < 90 && src >= 80) {
			System.out.println("B");
		} else if (src < 80 && src >= 70) {
			System.out.println("C");
		} else if (src < 70 && src >= 60) {
			System.out.println("D");
		} else if (src < 60 && src >= 0){
			System.out.println("不及格");
		}else {
			System.out.println("成绩不合法");
		}

		scanner.close();
	}

}
